Count the number of existing values in a field in a record